package org.huzhp.gateway.filter.balance;

import com.netflix.loadbalancer.Server;

/**
 * @Description: 权重服务
 * @Author: huzp
 * @CreateDate: 2020/4/17 16:29
 * @Version: 1.0
 */
public class WeightServer extends Server{

    private int weight;//权重

    private int currentWeight;//当前权重

    public WeightServer(String host, int port) {
        super(host, port);
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
        this.currentWeight = weight;
    }

    public int getCurrentWeight() {
        return currentWeight;
    }

    public void setCurrentWeight(int currentWeight) {
        this.currentWeight = currentWeight;
    }
}
